package com.wise.service.cms.content.productindustry.product;

import com.wise.summer.v1.cms.content.product.CopyProduct;
import com.wise.summer.v1.cms.content.productindustry.CopyProductIndustry;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author Pitaya
 * @date 2019-11-13
 */

@Service
@SummerService
public class CopyProductIndustryService implements SummerServiceBean<CopyProductIndustry> {
    @Override
    public void sum(CopyProductIndustry summer) {
        CopyProduct copyProduct = new CopyProduct();
        BeanUtils.copyProperties(summer, copyProduct);
        copyProduct.sum();
        summer.setSummerResult(copyProduct.getSummerResult());

    }
}
